package cn.com.surker.material.dao;

import cn.com.surker.material.entity.MainMaterial;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 材料类型表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-06-29
 */
public interface MainMaterialDao extends BaseMapper<MainMaterial> {

    /**
     * 根据材料ID查询材料信息
     * @param materialId
     * @return
     */
    MainMaterial findByMaterialId(Long materialId);

    MainMaterial findByDbMaterialId(String dbCode,Long materialId);
}
